package com.sun.bean;

public class Books {
    private int id;
    private String photo;
    private String bname;
    private double price;
    private String author;
    private String press;
    private String pubdate;
    private int number;
    private  String calssift;
    private String area;

    public Books() {
    }

    public Books(String photo, String bname, double price, String author, String press, String pubdate, int number, String calssift, String area) {
        this.photo = photo;
        this.bname = bname;
        this.price = price;
        this.author = author;
        this.press = press;
        this.pubdate = pubdate;
        this.number = number;
        this.calssift = calssift;
        this.area = area;
    }

    public Books(int id, String photo, String bname, double price, String author, String press, String pubdate, int number, String calssift, String area) {
        this.id = id;
        this.photo = photo;
        this.bname = bname;
        this.price = price;
        this.author = author;
        this.press = press;
        this.pubdate = pubdate;
        this.number = number;
        this.calssift = calssift;
        this.area = area;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPhoto() {
        return photo;
    }

    public void setPhoto(String photo) {
        this.photo = photo;
    }

    public String getBname() {
        return bname;
    }

    public void setBname(String bname) {
        this.bname = bname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public String getPubdate() {
        return pubdate;
    }

    public void setPubdate(String pubdate) {
        this.pubdate = pubdate;
    }

    public int getNumber() {
        return number;
    }

    public void setNumber(int number) {
        this.number = number;
    }

    public String getCalssift() {
        return calssift;
    }

    public void setCalssift(String calssift) {
        this.calssift = calssift;
    }

    public String getArea() {
        return area;
    }

    public void setArea(String area) {
        this.area = area;
    }

    @Override
    public String toString() {
        return "Books{" +
                "id=" + id +
                ", photo='" + photo + '\'' +
                ", bname='" + bname + '\'' +
                ", price=" + price +
                ", author='" + author + '\'' +
                ", press='" + press + '\'' +
                ", pubdate='" + pubdate + '\'' +
                ", number=" + number +
                ", calssift='" + calssift + '\'' +
                ", area='" + area + '\'' +
                '}';
    }
}
